//
//  PTCoreDefine.h
//  PlanTech
//
//  Created by ruifeng song on 2018/7/16.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#ifndef PTCoreDefine_h
#define PTCoreDefine_h

#pragma mark - Notification key

//刷新我的发布列表
static NSString * const kPT_Global_Notification_RefreshMyReleaseList = @"PT_Global_Notification_RefreshMyReleaseList";

//接单通知
static NSString * const kPT_Global_Notification_UndertakeService = @"PT_Global_Notification_UndertakeService";

//刷新生活服务列表
static NSString * const kPT_Global_Notification_RefreshLifeServiceList = @"PT_Global_Notification_RefreshLifeServiceList";

//刷新我的兼职列表
static NSString * const kPT_Global_Notification_RefreshMyPartJobList = @"PT_Global_Notification_RefreshMyPartJobList";


//服务类型
typedef enum : NSUInteger {
    PTLifeService_ExpressType = 8,   //代取快递
    PTLifeService_PrintType = 9,     //打印复印
    PTLifeService_BuyMealType = 10,  //捎饭带饭
    PTLifeService_HotboomType = 11,  //超市代购
} PTLifeServiceType;

//我的发布状态
typedef enum : NSUInteger {
    PTLifeService_AllStatus = -1,           //全部
    PTLifeService_NormalStatus = 0,         //待接单
    PTLifeService_CancelReleaseStatus =1,   //已取消
    PTLifeService_TakeOrderUnDoneStatus = 3, //已接单
    PTLifeService_TakeOrderDoneStatus = 4,   //待完成
    PTLifeService_FinishStatus = 5,          //已完成(待评价)
    PTLifeService_CommentStatus = 6,         //已评价
    PTLifeService_WaitSolveStatus = 7,       //待处理(已举报对方)
} PTLifeServiceStatus;

//我的兼职状态
typedef enum : NSUInteger {
    PTLifeServiceMission_AllStatus = -1,   //全部
    PTLifeServiceMission_NormalStatus = 0,  //待完成
    PTLifeServiceMission_CancelJobStatus = 1, //取消承接
    PTLifeServiceMission_FinishStatus = 2,   //已完成(待评价)
    PTLifeServiceMission_DeleteJobStatus = 3, //已删除
    PTLifeServiceMission_WaitSolveStatus = 4,  //待处理(被举报)
    PTLifeServiceMission_CommentStatus = 5,  //已评价
} PTLifeServiceMissionStatus;

//我的发布按钮状态
typedef enum : NSUInteger {
    MyReleaseOrder_CancelType,    //取消订单
    MyReleaseOrder_DeleteType,    //删除订单
    MyReleaseOrder_ResetType,    //重新发布
    MyReleaseOrder_ReprotType,    //举报
    MyReleaseOrder_FinishType,    //完成
    MyReleaseOrder_CommentType,    //评价
    MyReleaseOrder_ReportFinishType,    //已举报
    MyReleaseOrder_TimeOutType,    //已过期
}MyReleaseOrderItemType;


static NSString * __nonnull const kPTCoreErrorDomain = @"kPTCoreErrorDomain";

//错误提示语
static NSString * __nonnull const kPTCore_Prompt_Network_Error = @"网络不给力,请稍后重试";

//失败 code 1001 1002 1003 1004 1005 1006错误 信息 封装于 message 中
static const NSUInteger kPTCore_Error_Unknown = 1001;

//操作成功
static const NSUInteger kPTCore_Response_Code = 1000;

//缺少关键信息
static const NSUInteger kPTCore_Error_ParameterMissingCode = 1006;

#endif /* PTCoreDefine_h */
